import React, {Component} from 'react'
import { Button, Table } from 'antd'

class Swiper extends Component{
  render(){
    const columns = [
      {
        title: 'id',
        dataIndex: 'id',
        key: 'id',
      },{
        title: '缩略图',
        dataIndex: 'url',
        key: 'url'
      },{
        title: '商品名',
        dataIndex: 'goods_name',
        key: 'goodss_name'
      },{
        title: '操作',
        key: 'action',
        render: (text, record) => (
          <span>
            <Button type="primary" size="small">编辑</Button>
            <Button type="danger" size="small">删除</Button>
          </span>
        )
      }
    ]
    return (
      <div classs="swiper">
        <Button type="primary">添加轮播</Button>
        <Table columns={columns}></Table>
      </div>
    )
  }
}
export default Swiper